package com.beone.admin.entity;


import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.base.common.BaseModel;


/**
 * @Title 排班模板明细 实体类
 * @Author 秦波
 * @Version 1.0 on 2019-06-01
 * @Copyright 贝旺科权
 */
@TableName("t_task_template_detail")
public class TaskTemplateDetail extends BaseModel {

    private static final long serialVersionUID = 1L;

	@TableId(value="ID", type= IdType.AUTO)
	private Integer id;
    /**
     * 关联模板id
     */
	@TableField("TEMPLATE_ID")
	private Integer templateId;
    /**
     * 序号
     */
	@TableField("ORDER_NO")
	private Integer orderNo;
    /**
     * 字段编码
     */
	@TableField("FIELD_CODE")
	private String fieldCode;
    /**
     * 字段名称
     */
	@TableField("FIELD_NAME")
	private String fieldName;
    /**
     * 是否为子级字段
     */
	@TableField("CHILD_TAG")
	private Integer childTag;
    /**
     * 父级字段名称（多个一致且相连的则合并）
     */
	@TableField("PARENT_NAME")
	private String parentName;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}

	public Integer getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public String getFieldCode() {
		return fieldCode;
	}

	public void setFieldCode(String fieldCode) {
		this.fieldCode = fieldCode;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Integer getChildTag() {
		return childTag;
	}

	public void setChildTag(Integer childTag) {
		this.childTag = childTag;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	@Override
	public String toString() {
		return "TaskTemplateDetail{" +
			", id=" + id +
			", templateId=" + templateId +
			", orderNo=" + orderNo +
			", fieldCode=" + fieldCode +
			", fieldName=" + fieldName +
			", childTag=" + childTag +
			", parentName=" + parentName +
			"}";
	}
}
